package com.shangxian.giveithome.code;

public enum PetCode implements Code {

    NOT_AUTH_DEL_DATA(false, 40001, "您无权删除其他机构数据"),
    ASYLUM_DEL_ERROR(false, 40003, "该宠物以死亡,您无法更改其状态"),
    ASYLUM_1_ERROR(false, 40004, "当前状态已是收容"),
    ASYLUM_2_ERROR(false, 40006, "当前状态已是待领养"),
    ASYLUM_3_ERROR(false, 40005, "当前状态已是已领养"),
    ASYLUM_ADOPTION_ERROR(false, 40007, "该宠物已被领养您无法修改其数据"),
    NOT_AUTH_UP_DATA(false,40002,"您无权修改其他机构数据"),
    AGREEMENT_1_ERROR(false,40008,"协议尚未创建"),
    AGREEMENT_2_ERROR(false,40009,"该宠物已被领养"),
    AGREEMENT_3_ERROR(false,40010,"当前宠物是由您送养的，不能自己领养"),
    NOT_AUTH_OP_PET(false,40011,"您无权操作该宠物");

    private boolean success;

    private Integer code;

    private String message;

    PetCode(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
